package com.sky.service;

import com.sky.entity.AddressBook;

import java.util.List;

public interface AddressBookService {
    //地址列表
    List<AddressBook> findList(AddressBook addressBook);

    //添加地址
    void save(AddressBook addressBook);

    //设置默认地址
    void setDefault(AddressBook addressBook);

    //根据id删除地址
    void deleteById(Long id);

    //根据id查询地址
    AddressBook findById(Long id);

    //根据id修改地址
    void updateById(AddressBook addressBook);
}
